package com.itaem.community.modules.infrastructure.user.entity;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.TableName;
import com.itaem.community.core.entity.Entity;
import com.itaem.community.modules.infrastructure.user.enums.Gender;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * <p>
 * 用户信息
 * </p>
 *
 * @author tomato
 * @since 2020-10-28
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName("user")
@ApiModel(value="用户实体对象", description="用户信息")
public class UserEntity extends Entity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "登录凭证")
    private String token;

    @ApiModelProperty(value = "身份证号码")
    private String idCardNumber;

    @ApiModelProperty(value = "用户住址")
    private String address;

    @EnumValue
    @ApiModelProperty(value = "用户性别")
    private Gender gender;

    @ApiModelProperty(value = "用户角色")
    private Integer roleId;

    @ApiModelProperty(value = "用户名")
    private String name;

    @ApiModelProperty(value = "逻辑删除")
    private Boolean deleted;
}
